<template>
  <div class="search">
      <div class="search-lt">
        <van-icon name="fenlei" size="20" color="#fff" class-prefix="icon"></van-icon>
        <span>分类</span>
      </div>
      <div class="search-gt" @click="$router.push('/search')">
        <van-icon name="sousuo"  class-prefix="icon"></van-icon>
        <span>搜索店铺、商品</span>
      </div>
    </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.search{
  display: flex;
  height: 50px;
  background-color: #f66;
  width: 100%;
  position: fixed;
  left:0;
  top:0;
  padding-right: 10px;
  box-sizing: border-box;
  align-items: center;
  z-index:10;
  &-lt{
    display: flex;
    flex-direction: column;
    color:#fff;
    font-size: 14px;
    padding:0 5px;
    justify-content: space-around;
    align-items: center;
  }
  &-gt{
    height: 30px;
    flex:1;
    background-color: rgba(255,255,255,.3);
    border-radius: 15px;
    color:#fff;
    display: flex;
    align-items: center;
    .icon{
      margin: 0 8px;
    }
    span{
      font-size: 14px;
    }
  }
}
</style>
